package cn.topevery.garden.entity.dto;

import cn.afterturn.easypoi.excel.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import lombok.Data;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.math.BigDecimal;
import org.locationtech.jts.geom.Geometry;
import com.alibaba.fastjson.annotation.JSONField;
import cn.topevery.garden.entity.serializer.GeometrySerializer;

/**
 * 机械信息 DTO
 */
@Data
@ApiModel(value = "MachineInfoDTO", description = "机械信息 DTO")
public class MachineInfoDTO implements Serializable{
    /**
     * 自增id
     */
    private Integer id;

        /** UUID */
    @ApiModelProperty(value = "UUID")
    private String entityId;

    /** 名称  */
    @ApiModelProperty(value = "名称 ")
    private String name;

    /** 编码  */
    @ApiModelProperty(value = "编码 ")
    private String code;

    /** 品牌  */
    @ApiModelProperty(value = "品牌 ")
    private String brand;

    /** 所属单位Id  */
    @ApiModelProperty(value = "所属单位Id ")
    private String deptId;

    /** 所属单位  */
    @ApiModelProperty(value = "所属单位 ")
    private String deptName;

    /** 购入日期  */
    @ApiModelProperty(value = "购入日期 ")
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime buyDate;

    /** 上一次检修时间  */
    @ApiModelProperty(value = "上一次检修时间 ")
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime overhaulDate;

    @ApiModelProperty(value = "状态 ")
    @Excel(name = "状态 ", orderNum = "0")
    private Integer state;

    @ApiModelProperty(value = "描述 ")
    @Excel(name = "描述 ", orderNum = "0")
    private String desc;

}
